def func():
    print("hello")
    raise Exception("出现了错误")
    print("world")

func()